# 导包
import unittest
from script.test01_login import TestLoginAPI
from script.test01_staff import TestStaffAPI
import app
from htmltestreport import HTMLTestReport

# 组装测试套件
suite = unittest.TestSuite()
# 登录成功
suite.addTest(TestLoginAPI("test_login"))
# 员工管理
suite.addTest(unittest.makeSuite(TestStaffAPI))

# 指定报告
report = app.BASE_PATH + "/report/bb.html"

# 创建runner
runner = HTMLTestReport(report, title="接口自动化测试报告")

# 执行suite
runner.run(suite)
